package com.scujj.cs6.model.dto.question;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 提问 DTO
 */
@Data
@Schema(name = "问题更新信息" , description = "问题更新信息")
public class QuestionUpdateDTO {
    @Schema(description = "问题标题", example = "如何学习 Java？")
    @NotBlank(message = "标题不能为空")
    private String title;

    @Schema(description = "问题内容", example = "我想学习 Java 但不知道如何入门？")
    @NotBlank(message = "内容不能为空")
    private String content;
}
